package com.zhuky.controller;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.zhuky.entity.Resource;

@Controller
@RequestMapping("/freemarker")
public class FreeMarkerController {

	@Autowired
	private Resource resource;
	
	@RequestMapping("/index")
	public String index(Model Model) {
		Model.addAttribute("resource", resource);
		return "freemarker/index";
	}
}
